<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title></title>
		<script src="../../dist/jquery-2.0.0.min.js" type="text/javascript" charset="utf-8"></script>
		<link rel="stylesheet" type="text/css" href="../../dist/webuploader.css" />
		<link rel="stylesheet" type="text/css" href="../../css/admin.css" />
		<link rel="stylesheet" type="text/css" href="../../layui/css/layui.css" />
		<script src="../../layui/layui.js" type="text/javascript" charset="utf-8"></script>
	</head>

	<body overflow-y:hidden;>
		<div id="addbook">
			<h2>添加商品</h2>
			<form class="layui-form" enctype="multipart/form-data" action="javascript:;">
				<div class="layui-form-item">
					<label class="layui-form-label">商品标题</label>
					<div class="layui-input-block">
						<input type="text" name="title" required lay-verify="required" placeholder="请输入标题" autocomplete="off" class="layui-input">
					</div>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label">商品名称</label>
					<div class="layui-input-block">
						<input type="text" name="bookname" required lay-verify="required" placeholder="" autocomplete="off" class="layui-input">
					</div>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label">商品价格</label>
					<div class="layui-input-block">
						<input type="text" name="price" required lay-verify="required" placeholder="" autocomplete="off" class="layui-input">
					</div>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label">库存数量</label>
					<div class="layui-input-block">
						<input type="number" name="amount" min="0" max="9999" value="0" required lay-verify="required" placeholder="" autocomplete="off" class="layui-input">
					</div>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label">商品类别</label>
					<div class="layui-input-block">
						<select name="category" lay-verify="required">
							<option value=""></option>
							<option value="小说">小说</option>
							<option value="教育">教育</option>
							<option value="运动">运动</option>
							<option value="杂志">杂志</option>
							<option value="科技">科技</option>
						</select>
					</div>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label">作者</label>
					<div class="layui-input-block">
						<input type="text" name="author" required lay-verify="required" autocomplete="off" class="layui-input">
					</div>
				</div>
				<div class="layui-form-item layui-form-text">
					<label class="layui-form-label">商品简介</label>
					<div class="layui-input-block">
						<textarea name="summary" placeholder="请输入内容" class="layui-textarea"></textarea>
					</div>
				</div>
				<div class="layui-form-item layui-form-text">
					<label class="layui-form-label">商品封面</label>
					<div id="font"> </div>
					<div id="uploader" class="wu-example">
						<!--用来存放文件信息-->
						<div id="thelist" class="uploader-list"></div>
						<div class="btns">
							<div id="picker">选择文件</div>
						</div>
					</div>

				</div>
				<div class="layui-form-item">
					<div class="layui-input-block">
						<button id="ctlBtn" class="layui-btn" lay-submit lay-filter="formDemo">立即提交</button>
						<button type="reset" class="layui-btn layui-btn-primary">重置</button>
					</div>
				</div>
				<input type="hidden" name="imgurl" id="imgurl" value="11" />
			</form>
		</div>

		<script src="../../js/book/addbook.js" type="text/javascript" charset="utf-8"></script>
		<script src="../../dist/webuploader.js" type="text/javascript" charset="utf-8"></script>
		<script src="../../js/upload/bookupload.js" type="text/javascript" charset="utf-8"></script>
	</body>

</html>